package org.lhq.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Wallace
 */
@FeignClient(name = "mail-service")
@RequestMapping("mail-feign")
public interface MailService {
    @PostMapping("resetPassword")
    Boolean resetPassword(@RequestParam("targetMail")String targetMail,
                          @RequestParam("title")String title,
                          @RequestParam("resetLink")String resetLink);
    @PostMapping("activation")
    Boolean activation(@RequestParam("targetMail") String targetMail,
                       @RequestParam("title") String title,
                       @RequestParam("activationCode") String activationCode);
    @PostMapping("verificationCode")
    Boolean mailVerificationCode(@RequestParam("targetMail") String targetMail,
                                 @RequestParam("title") String title,
                                 @RequestParam("verificationCode") String verificationCode);
}
